<style type="text/css">
    p{ color: red; font-size: 12px;}
    span{color:red;font-size:12px;}
    span{color:red;}
</style>
<div class="task1">

    <?php
    //----------this is session for using in order to echo messages--------------

    if ($this->session->userdata('ms_error')) {
        echo message($this->session->userdata('ms_error'), "error");
        $this->session->unset_userdata("ms_error");
    }
    echo form_open('card/add_type', array('name' => 'frmadd', 'onsubmit' => 'return check_user()', 'method' => 'post'));
    echo '<div class="form-wrapper" style="width:94%;padding:10px; borde:0px solid #000;margin:0 auto;">';
    echo '<fieldset style="margin: 0 auto;width:60%;height: auto;border: 1px #ccc solid; padding:20px 15px 20px 15px;-moz-border-radius:10px;">';
    echo '<legend align="center"><div class="heading" style="font-size:24px;">Add New Card Type</div></legend>';
    echo ' <div style="float: right;width:auto;height: auto;">' . anchor("card/cardfolder", img("images/user_images/cancel.png")) . '</div>';
    echo '<table align="center">';
    echo '<tr>';
    echo '<td valign="top">Card Type Name<span>*</span></td>';
    echo '<td>' . form_input(array('name' => 'type_name', 'value' => $this->input->post("type_name") ? $this->input->post("type_name") : " ")) . form_error('type_name') . '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td>Description<span style="color:blue;">(Optional)</span></td>';
    echo '<td>' . form_textarea(array('name' => 'txt_detail', 'cols' => '30', 'rows' => '8', $this->input->post("txt_detail") ? $this->input->post("txt_detail") : " ")) . '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td></td>';
    echo '<td>' . form_submit('btn_submit', 'Add') . form_reset('btn_reset', 'Reset') . '</td>';
    echo '</tr>';
    echo '</table>';
    echo '<p>Note : (*) must be insert!</p>';
    echo '</fieldset>';
    echo '</div>';
    echo form_close();
    ?>
</div>


